import React from 'react'
import ReactDOM from 'react-dom'
import { Provider } from 'react-redux'
import { HashRouter, Route, Switch } from 'react-router-dom'
import App from './pages/base/app'

import configure from './middleware/configureStore'
import Login from './pages/base/login'
import Notfound from './pages/base/notfound'

const store = configure({})

console.log(process.env)
ReactDOM.render(
  <Provider store={store}>
    <HashRouter>
      <Switch>
        <Route path="/" component={App} />
        <Route path="*" component={Notfound} />
        <Route path="/login" component={Login} />
      </Switch>
    </HashRouter>
  </Provider>,
  document.getElementById('root'),
)
